Skip to content

Conversation

@labkey-martyp
Copy link
Contributor

Rationale

This is the first deliverable of a react participant view in EHR. Hidden as an experimental feature, this only applies to the participant view when clicking on an animal Id within an EHR project.

Changes

  • Tabbed view wrapping existing reports and queries.
  • Parses single animal and selected report from URL
  • Creates tab and panel components necessary for wrapped reports
  • Jest testing in @labkey/ehr for new components
  • ESLint configs added to both @labkey/ehr and EHR_App

// Declare global variables for ExtJS
declare const Ext4: any;

export const JSReportWrapper: FC<{ report: ReportConfig; reportNamespace?: any; tab: any }> = memo(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it makes sense to use a concrete type instead of 'any'?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to update reportNamespace type. The others are reaching into legacy JS code so a little tougher to get definitive types.

schemaName: report.schemaName,
reportId: report.reportId,
'query.queryName': report.queryName,
participantId: '12345',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the hardcoded participantId necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks this was cleaned up.

@labkey-martyp labkey-martyp merged commit fe38d35 into develop Jan 5, 2026
5 of 7 checks passed
@labkey-martyp labkey-martyp deleted the fb_prt_reports branch January 5, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants